from csagent.core.node.base_node import BaseNode
from csagent.core.context import AgentState
from csagent.core.config.schema import NodeConfig
from csagent.core.constants import START_NODE


class StartNode(BaseNode):
    def execute(self, state: AgentState, stream_writer=None) -> AgentState:
        return state
    
def build_start_node() -> StartNode:
    node_config = NodeConfig(name=START_NODE)
    return StartNode(node_config)